package com.example.smartgreenhouse.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("pump_history_status")
public class PumpHistoryStatus {
    @TableId(type = IdType.AUTO)
    private Long id;

    @TableField("pump_id")
    private Long pumpId = 2L;

    @TableField("greenhouse_id")
    private Long greenhouseId = 1L;

    @TableField("current_level")
    private Integer currentLevel;

    @TableField("is_auto")
    private Boolean isAuto;

    @TableField(value = "collect_time", fill = FieldFill.INSERT)
    private LocalDateTime collectTime= LocalDateTime.now();
}